package com.BraveY.Demo07;

import java.text.SimpleDateFormat;
import java.time.LocalDateTime;
import java.util.Date;

public class Demo05 {
    public static void main(String[] args) {
        Date time = new Date();
        System.out.println(time);
        long data = 1000*60*60;
        Date time2 = new Date(data);
        System.out.println(time2);

        long time3 = System.currentTimeMillis();
        time.setTime(time3);
        System.out.println(time);

        SimpleDateFormat time5 = new SimpleDateFormat("yyyy年MM月dd日 HH:mm:ss");
        System.out.println(time5);

        LocalDateTime time6 = LocalDateTime.now();
        System.out.println(time6);

        int year = time6.getYear();
        System.out.println(year);

    }
}
